package com.example.app.service;

import com.example.app.model.Organ;
import com.example.app.model.Patient;
import com.example.app.model.Reservation;
import com.example.app.model.SystemConfig;
import com.example.app.model.User;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

/**
 * Created by wangtao on 2018/5/17.
 */
public interface ReservationService {
    List<Reservation> findByAppointment(Long patientId, String startDate, String endDate);
    void doGenerateAppointment(Patient patient, Organ organ, User doctor, User nurse, Date appointment, String remark);
    boolean doCheckDoctor(Long doctorId, String datetime, SystemConfig config) throws ParseException;
    boolean doCheckNurse(Long nurseId, String datetime, SystemConfig config) throws ParseException;
    boolean checkAppointment(Long patientId, String startTime, String endTime);
}
